package com.bwie.controller;

import com.bwie.service.TUserService;
import com.bwie.utils.R;
import com.bwie.vo.LoginInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * TODO
 *
 * @Description
 * @Author 36167
 * @Date 2025/3/12 9:21
 **/

@RestController
@RequestMapping("/user")
public class UserController {


    @Autowired
    private TUserService tUserService;

    @GetMapping("/login")
    public R login(LoginInfoVo loginInfoVo){
        return tUserService.login(loginInfoVo);
    }

    @PostMapping("/user/{uid}")
    public R user(@PathVariable Integer uid){
        return tUserService.user(uid);
    }

}
